package com.mofeng.myshop.until;

import com.mofeng.myshop.domain.po.UserBase;
import com.mofeng.myshop.domain.vo.user.UserVo;

public class LoginUserThreadLocalUtil {
    private static final ThreadLocal<UserVo> threadLocal = new ThreadLocal<>();

    /**
     * 获取值
     */
    public static UserVo get() {
        return threadLocal.get();
    }

    /**
     * 设置值
     */
    public static void set(UserVo object) {
        threadLocal.set(object);
    }

    public static void remove() {
        threadLocal.remove();
    }
}
